package zuoye.ershouche.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zuoye.ershouche.entity.UserCollectCars;
import zuoye.ershouche.mapper.UserCollectCarsMapper;
import zuoye.ershouche.service.UserCollectCarsService;

@Service
public class UserCollectCarsServiceImpl implements UserCollectCarsService {
    @Autowired
    UserCollectCarsMapper userCollectCarsMapper;

    @Override
    public int insertUserCollectCars(UserCollectCars userCollectCars) {
        return userCollectCarsMapper.insertUserCollectCars(userCollectCars);
    }

    @Override
    public int deleteUserCollectCarsById(int userId,int carId) {
        return userCollectCarsMapper.deleteUserCollectCars(userId,carId);
    }
}
